package com.mangabiz.market.dao.hibernate;

// Start of user code for import
import javax.inject.Named;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mangabiz.market.dao.IProductDao;
import com.mangabiz.market.entities.Product;


// End of user code for import

/**
 * Implementation of DAO interface IProductDao based on the hibernate
 * persistence framework.
 * 
 * @see com.mangabiz.market.dao.IProductDao
 */
//@Repository("productDao")
@Named("productDao")
public class HibernateProductDao extends AbstractHibernateDao<Product, Long>
		implements IProductDao {


	/**
	 * The logger of this class.
	 */
	private static final Log LOG = LogFactory.getLog(HibernateProductDao.class);


	@Autowired
	public HibernateProductDao(SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}

	// Start of user code
	// End of user code
}
